package com.huirui.server.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 商品参数表
 *
 * @TableName t_product_parameter
 */
@TableName(value = "t_product_parameter")
@Data
public class ProductParameter implements Serializable {
    /**
     * 参数ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品ID
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 生产企业
     */
    @TableField(value = "manufacturing_enterprise")
    private String manufacturingEnterprise;

    /**
     * 注册证号
     */
    @TableField(value = "registration_number")
    private String registrationNumber;

    /**
     * 医保编号
     */
    @TableField(value = "medical_insurance_number")
    private String medicalInsuranceNumber;

    /**
     * 注册证件照
     */
    @TableField(value = "registration_id_photo")
    private String registrationIdPhoto;

    /**
     * 商品包装
     */
    @TableField(value = "product_packaging")
    private String productPackaging;

    /**
     * 生产日期
     */
    @TableField(value = "manufacturing_date")
    private LocalDate manufacturingDate;

    /**
     * 有效期至
     */
    @TableField(value = "expiry_date")
    private LocalDate expiryDate;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}